package com.design.birdge.message;

import com.design.birdge.message.platform.AllNewMessagePlatform;
import com.design.birdge.message.platform.QQMessage;
import com.design.birdge.message.platform.WechatMessage;
import com.design.birdge.message.type.AllNewTypeMessage;
import com.design.birdge.message.type.SuccessMessage;
import com.design.birdge.message.type.WarningMessage;

public class Test {
    public static void main(String[] args) {
//        MessageImplementor implementor = new WechatMessage();
//        AbstractMessage abstractMessage = new CommonMessage(implementor);
//        abstractMessage.sendMessage("加班申请速批", "陈总");
        String message = "加班申请速批";
        String toUser = "陈总";
        MessageImplementor implementor = new AllNewMessagePlatform();
        AbstractMessage abstractMessage = new AllNewTypeMessage(implementor);
        abstractMessage.sendMessage(message, toUser);

    }
}
